<?php
require_once('../include/common.inc.php');
require_once(DEDEINC.'/datalistcp.class.php');
require_once(DEDEINC.'/common.func.php');

if(!$dopost){
	ajaxreturn('数据出错！', 0);
}
setcookie('ENV_GOBACK_URL',$dedeNowurl,time()+3600,'/');
 $query = "INSERT INTO #@__join(message,name,sex,mail,
 isByMail,tel,area,idnumber,isjoin,address,inarea,width,
 totarea,jptotarea,tomoney,moonmoney,formmoney,limitmoney,isjy,work,isok,howold,youhope,add_time)
 VALUES('$message','$name','$sex','$mail','$isByMail','$tel','$area','$idnumber',
 '$isjoin','$address','$inarea','$width','$totarea','$jptotarea','$tomoney',
 '$moonmoney','$formmoney','$limitmoney','$isjy','$work',
 '$isok','$howold','$youhope','".date('Y-m-d H:i:s',time())."')";
 $dsql->ExecuteNoneQuery($query);

ajaxreturn('加盟申请提交成功！我们的客服将在24小时内与您联得联系！', 1);
 
function ajaxreturn($info='',$status=1){
	exit(json_encode(array('status'=>$status, 'info'=>$info)));
}
?>